package com.hnas.tjhnaaw.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.tjhnaaw.dao.GenerateMrchTwoCodeDAO;
import com.hnas.tjhnaaw.orm.GenerateMrchTwoCode;

@Component("generateMrchTwoCodeService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class GenerateMrchTwoCodeServiceImpl implements GenerateMrchTwoCodeService {

	@Autowired
	private GenerateMrchTwoCodeDAO generateMrchTwoCodeDAO;


	@Override
	public GenerateMrchTwoCode getMrchTwoCodeByMrchIdAndTermNo(String mrchId, String termNo) {
		GenerateMrchTwoCode vo = this.generateMrchTwoCodeDAO.getMrchTwoCodeByMrchIdAndTermNo(mrchId, termNo);
		return vo;
	}
}
